package jgl.vajra.kingkong.utils;

public class RandomUtils {

    //生成十五位随机数
    public static String getRandom(){
        StringBuilder strRand= new StringBuilder();
        for(int i=0;i<15;i++){
            strRand.append((int) (Math.random() * 10));
        }

       return strRand.toString();
    }

    /* String encrypt = AEACCoder.encrypt("哈哈哈");
        Logger.d("哈哈哈========="+encrypt+"加密");

        String decrypt = AEACCoder.decrypt(encrypt);
        Logger.d("哈哈哈========="+decrypt+"解密");

        try {
            Map<Integer, String> integerStringMap = RSACCoder.genKeyPair();
            String encryptRSA = RSACCoder.encoderRSAPrivateKey(integerStringMap.get(1), "哈哈哈");
            Logger.d("encryptRSA哈哈哈========="+encryptRSA+"加密");
            String decoderRSA = RSACCoder.decoderRSApublicKey(integerStringMap.get(2), encryptRSA);
            Logger.d("decoderRSA哈哈哈========="+decoderRSA+"解密");
        } catch (Exception e) {
            e.printStackTrace();
        }*/
}
